package sinochem.bpmrefactor.rabbitlistener.cotroller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import sinochem.bpmrefactor.rabbitlistener.entity.Task;
import sinochem.bpmrefactor.rabbitlistener.entity.WorkflowDef;
import sinochem.bpmrefactor.rabbitlistener.mapper.db1.TaskMapper;
import sinochem.bpmrefactor.rabbitlistener.mapper.db2.WorkflowDefMapper;

/**
 * @author : jiagang
 * @date : Created in 2021/9/30 9:30
 */
@RestController
public class HelloWordController {

    @Autowired
    private TaskMapper taskMapper;

    @Autowired
    private WorkflowDefMapper workflowDefMapper;

    @RequestMapping("hello")
    public WorkflowDef helloWord(){
//
//        Task task = taskMapper.selectById(10);
//        return task;
        return workflowDefMapper.selectById(10);

    }
}
